:root {
  font-family: system-ui, Avenir, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  font-weight: 400;

  color-scheme: light dark;
  color: rgba(255, 255, 255, 0.87);
  background-color: #242424;

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  font-weight: 500;
  color: #646cff;
  text-decoration: inherit;
}
a:hover {
  color: #535bf2;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

button {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 1em;
  font-weight: 500;
  font-family: inherit;
  background-color: #1a1a1a;
  cursor: pointer;
  transition: border-color 0.25s;
}
button:hover {
  border-color: #646cff;
}
button:focus,
button:focus-visible {
  outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
  :root {
    color: #213547;
    background-color: #ffffff;
  }
  a:hover {
    color: #747bff;
  }
  button {
    background-color: #f9f9f9;
  }
}

/* 添加表格间隔行样式 */
.table-row-alternate {
  background-color: #fafafa;
}

/* 表格行hover效果 */
.ant-table-tbody > tr:hover > td {
  background-color: #e6f7ff !important;
}

/* 调整表格内容垂直居中 */
.ant-table-thead > tr > th,
.ant-table-tbody > tr > td {
  padding: 12px 8px;
  vertical-align: middle;
}

/* 调整按钮组间距 */
.ant-space-item {
  margin-right: 4px !important;
}

/* 调整表格边框和圆角 */
.ant-table {
  border-radius: 8px;
  overflow: hidden;
}

/* 调整Card样式 */
.ant-card {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

/* 调整分页器样式 */
.ant-pagination {
  margin-top: 16px !important;
  text-align: right;
}

/* 货架卡片样式 */
.shelf-card {
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 16px;
}

/* 鼠标悬停时的效果 */
.shelf-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
  border-color: #1890ff;
  background-color: #e6f7ff;
}

/* 货架卡片标题样式 */
.shelf-card .ant-card-head-title {
  font-weight: bold;
  color: #1890ff;
}

/* 货架卡片内容样式 */
.shelf-card .ant-card-body p {
  margin-bottom: 8px;
}

/* 特殊货架卡片样式 */
.shelf-card.special {
  background-color: #fff7e6;
  border-color: #ffa940;
}

.shelf-card.special:hover {
  background-color: #fff1d6;
  border-color: #fa8c16;
}

/* 分页器样式 */
.ant-pagination {
  margin: 20px 0;
}

.ant-pagination-item {
  border-radius: 4px;
}

.ant-pagination-item-active {
  background-color: #1890ff;
  border-color: #1890ff;
}

.ant-pagination-item-active a {
  color: #fff;
}

.ant-pagination-item:hover {
  border-color: #1890ff;
}

.ant-pagination-item:hover a {
  color: #1890ff;
}

.ant-pagination-options {
  margin-left: 16px;
}

.ant-pagination-options-quick-jumper {
  margin-left: 16px;
}

.ant-select-dropdown-menu-item-selected {
  color: #1890ff;
  font-weight: 600;
  background-color: #e6f7ff;
}
